package com.test.ssm.service.impl;

import com.test.ssm.dao.LoginLogDAO;
import com.test.ssm.pojo.LoginLog;
import com.test.ssm.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {
    @Autowired
    private LoginLogDAO loginLogDAO;

    @Override
    public void addLog(LoginLog log) {
        loginLogDAO.addLog(log);
    }

    @Override
    public List<String> getLogList(Integer studentId, String day) {
        return loginLogDAO.getLogList(studentId, day);
    }
}
